import datetime

from pydantic import BaseModel, Field
from typing import Optional, List, Union

from module_admin.entity.vo.cms_car_vo import CarSimpleModel
from module_admin.entity.vo.cms_driver_vo import OrderListOrderChild, DriverSimpleModel


class BillFile(BaseModel):
    # 必填
    order_id: Optional[int] = Field(None, comment='订单id')
    base64_file: Optional[str] = Field(None, comment='base64文件')


class BillFileData(BaseModel):
    # order
    department_name: Optional[str] = Field(None, comment='部门名称')
    order_id: Optional[str] = Field(None, comment='订单id')
    start_and_destination: Optional[str] = Field(None, comment='出发地-目的地')
    start_and_end_time: Optional[str] = Field(None, comment='开始结束时间')
    # 车辆
    car_brand_and_car_type: Optional[str] = Field(None, comment='车辆品牌和车辆类型')
    car_number: Optional[str] = Field(None, comment='车牌号')
    # 司机
    driver_name: Optional[str] = Field(None, comment='司机姓名')
    use_user: Optional[str] = Field(None, comment='用车人')
    # bill多少公里(bill系统里程),调度员
    mileage: Optional[str] = Field(None, comment='里程')
    dispatch_name: Optional[str] = Field(None, comment='调度员')
    expenses: Optional[str] = Field(None, comment='费用')
    # execute
    sign: Optional[str] = Field(None, comment='签名')
    export_time: Optional[str] = Field(None, comment='导出日期')

